// 模拟学生数据

const  Mock = require("mockjs");
const Student = require("../models/student")

const result = Mock.mock({
    "data|400-600":[{
        stuName:'@cname',
        birthDay:'@date',
        'sex|1':[true,false],
        phone:/^1[3456789]\d{9}$/,
        'GradeId|1-20':1
    }]
})

Student.bulkCreate(result.data).then(()=>{
    console.log("学生数据更新完成")
})